import { http } from '@/utils/http.ts'

// 提交订单
export const submitOrderApi = (data: any) => {
  return http({
    url: '/user/orders',
    method: 'POST',
    data,
  })
}

// 获取历史订单列表
export const getOrderListApi = (data: any) => {
  return http({
    url: '/user/orders',
    method: 'GET',
    data,
  })
}
